// vite.config.ts
import { defineApplicationConfig } from "file:///C:/work/lz/source/Front/internal/vite-config/dist/index.mjs";
import postCssPxToRem from "file:///C:/work/lz/source/Front/node_modules/.pnpm/postcss-pxtorem@6.1.0_postcss@8.4.41/node_modules/postcss-pxtorem/index.js";
import AutoImport from "file:///C:/work/lz/source/Front/node_modules/.pnpm/unplugin-auto-import@0.18.2_@vueuse+core@10.11.1_vue@3.4.37_typescript@5.5.4___rollup@3.29.4/node_modules/unplugin-auto-import/dist/vite.js";
import Components from "file:///C:/work/lz/source/Front/node_modules/.pnpm/unplugin-vue-components@0.27.4_@babel+parser@7.26.3_rollup@3.29.4_vue@3.4.37_typescript@5.5.4_/node_modules/unplugin-vue-components/dist/vite.js";
import { TDesignResolver } from "file:///C:/work/lz/source/Front/node_modules/.pnpm/unplugin-vue-components@0.27.4_@babel+parser@7.26.3_rollup@3.29.4_vue@3.4.37_typescript@5.5.4_/node_modules/unplugin-vue-components/dist/resolvers.js";
var vite_config_default = defineApplicationConfig({
  overrides: {
    optimizeDeps: {
      include: [
        "echarts/core",
        "echarts/charts",
        "echarts/components",
        "echarts/renderers",
        "qrcode",
        "@iconify/iconify",
        "ant-design-vue/es/locale/zh_CN",
        "ant-design-vue/es/locale/en_US"
      ]
    },
    css: {
      postcss: {
        plugins: [
          postCssPxToRem({
            rootValue: 192,
            // 1rem的大小
            propList: ["*"],
            // 需要转换的属性，这里选择全部都进行转换
            exclude: (e) => {
              if (/src(\\|\/)views(\\|\/)dataView/i.test(e)) {
                return false;
              }
              return true;
            }
          })
        ]
      }
    },
    server: {
      proxy: {
        "/basic-api": {
          target: "http://localhost:3000",
          changeOrigin: true,
          ws: true,
          rewrite: (path) => path.replace(new RegExp(`^/basic-api`), "")
          // only https
          // secure: false
        },
        "/upload": {
          target: "http://localhost:3300/upload",
          changeOrigin: true,
          ws: true,
          rewrite: (path) => path.replace(new RegExp(`^/upload`), "")
        }
      },
      open: true,
      // 项目启动后，自动打开
      warmup: {
        clientFiles: ["./index.html", "./src/{views,components}/*"]
      }
    },
    plugins: [
      // ...
      AutoImport({
        resolvers: [TDesignResolver({
          library: "mobile-vue"
        })]
      }),
      Components({
        resolvers: [TDesignResolver({
          library: "mobile-vue"
        })]
      })
    ]
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFx3b3JrXFxcXGx6XFxcXHNvdXJjZVxcXFxGcm9udFwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiQzpcXFxcd29ya1xcXFxselxcXFxzb3VyY2VcXFxcRnJvbnRcXFxcdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0M6L3dvcmsvbHovc291cmNlL0Zyb250L3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQXBwbGljYXRpb25Db25maWcgfSBmcm9tICdAdmJlbi92aXRlLWNvbmZpZyc7XG5pbXBvcnQgcG9zdENzc1B4VG9SZW0gZnJvbSAncG9zdGNzcy1weHRvcmVtJztcbmltcG9ydCBBdXRvSW1wb3J0IGZyb20gJ3VucGx1Z2luLWF1dG8taW1wb3J0L3ZpdGUnO1xuaW1wb3J0IENvbXBvbmVudHMgZnJvbSAndW5wbHVnaW4tdnVlLWNvbXBvbmVudHMvdml0ZSc7XG5pbXBvcnQgeyBURGVzaWduUmVzb2x2ZXIgfSBmcm9tICd1bnBsdWdpbi12dWUtY29tcG9uZW50cy9yZXNvbHZlcnMnO1xuZXhwb3J0IGRlZmF1bHQgZGVmaW5lQXBwbGljYXRpb25Db25maWcoe1xuICBvdmVycmlkZXM6IHtcbiAgICBvcHRpbWl6ZURlcHM6IHtcbiAgICAgIGluY2x1ZGU6IFtcbiAgICAgICAgJ2VjaGFydHMvY29yZScsXG4gICAgICAgICdlY2hhcnRzL2NoYXJ0cycsXG4gICAgICAgICdlY2hhcnRzL2NvbXBvbmVudHMnLFxuICAgICAgICAnZWNoYXJ0cy9yZW5kZXJlcnMnLFxuICAgICAgICAncXJjb2RlJyxcbiAgICAgICAgJ0BpY29uaWZ5L2ljb25pZnknLFxuICAgICAgICAnYW50LWRlc2lnbi12dWUvZXMvbG9jYWxlL3poX0NOJyxcbiAgICAgICAgJ2FudC1kZXNpZ24tdnVlL2VzL2xvY2FsZS9lbl9VUycsXG4gICAgICBdLFxuICAgIH0sXG4gICAgY3NzOiB7XG4gICAgICBwb3N0Y3NzOiB7XG4gICAgICAgIHBsdWdpbnM6IFtcbiAgICAgICAgICBwb3N0Q3NzUHhUb1JlbSh7XG4gICAgICAgICAgICByb290VmFsdWU6IDE5MiwgLy8gMXJlbVx1NzY4NFx1NTkyN1x1NUMwRlxuICAgICAgICAgICAgcHJvcExpc3Q6IFsnKiddLCAvLyBcdTk3MDBcdTg5ODFcdThGNkNcdTYzNjJcdTc2ODRcdTVDNUVcdTYwMjdcdUZGMENcdThGRDlcdTkxQ0NcdTkwMDlcdTYyRTlcdTUxNjhcdTkwRThcdTkwRkRcdThGREJcdTg4NENcdThGNkNcdTYzNjJcbiAgICAgICAgICAgIGV4Y2x1ZGU6IChlKSA9PiB7XG4gICAgICAgICAgICAgIGlmICgvc3JjKFxcXFx8XFwvKXZpZXdzKFxcXFx8XFwvKWRhdGFWaWV3L2kudGVzdChlKSkge1xuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZVxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgIHJldHVybiB0cnVlXG4gICAgICAgICAgICB9LFxuICAgICAgICAgIH0pLFxuICAgICAgICBdLFxuICAgICAgfVxuICAgIH0sXG4gICAgc2VydmVyOiB7X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